﻿using System;

class LastDigitAsWord
{
    static void Main()
    {
        Console.Write("Enter a number: ");
        int num = int.Parse(Console.ReadLine());

        string lastDigit = GetLastDigitAsWord(num);

        Console.WriteLine("The last digit is: " + lastDigit);
    }

    static string GetLastDigitAsWord(int number)
    {
        int lastDigit = number % 10;
        string lastDigitAsWord = "";

        switch (lastDigit)
        {
            case 0:
                lastDigitAsWord = "Zero";
                break;
            case 1:
                lastDigitAsWord = "One";
                break;
            case 2:
                lastDigitAsWord = "Two";
                break;
            case 3:
                lastDigitAsWord = "Three";
                break;
            case 4:
                lastDigitAsWord = "Four";
                break;
            case 5:
                lastDigitAsWord = "Five";
                break;
            case 6:
                lastDigitAsWord = "Six";
                break;
            case 7:
                lastDigitAsWord = "Seven";
                break;
            case 8:
                lastDigitAsWord = "Eigth";
                break;
            case 9:
                lastDigitAsWord = "Nine";
                break;
        }

        return lastDigitAsWord;
    }
}